package com.uhu.exception;

import lombok.Data;

/**
 * @author liujunjie
 * @description 自定义业务异常
 * @create 2023-11-15 09:59
 **/
@Data
public class BusinessException extends RuntimeException {
    private String message;

    public BusinessException(String message) {
        super(message);
        this.message = message;
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
        this.message = message;
    }
}
